{include file="common/header"}
<div id="app" v-cloak>
    <el-curd 
        :field="field" 
        :table-sort="{prop: 'create_time', order: 'desc'}" 
        search-keyword="请输入标题/路径/IP/内容搜索">
    </el-curd>
</div>
<script>
    new Vue({
        el: "#app",
        data() {
            return {
                field: [
                    {
                        prop: 'post',
                        label: '内容', 
                        table: {expand: true},
                    },
                    {
                        prop: 'admin_cover', 
                        label: '', 
                        table: {
                            is: 'el-image', 
                            width: '50px',
                        },
                    },
                    {
                        prop: 'admin_id', 
                        label: '管理员', 
                        table: { 
                            prop:'admin_account',
                            bind: ['admin_email'], 
                            sort: true
                        },
                    },
                    {
                        prop: 'title', 
                        label: '操作描述', 
                        table: {sort: true}
                    },
                    {
                        prop: 'path',
                        label: '操作路径',
                        table: {sort: true}
                    },
                    {
                        prop: 'ip',
                        label: 'ip地址', 
                        table: {sort: true}
                    },
                    {
                        prop: 'create_time', 
                        label: '操作时间', 
                        table: {sort: true}
                    },
				],
            }
        },
    })
</script>
{include file="common/footer"}